package com.huimingpay.merchant.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 
 * @TableName merchant
 */
@TableName(value ="merchant")
public class Merchant implements Serializable {
    /**
     * 主键
     */
    @TableId
    private Long id;

    /**
     * 商户名称
     */
    private String merchantName;

    /**
     * 企业编号
     */
    private String merchantNo;

    /**
     * 企业地址
     */
    private String merchantAddress;

    /**
     * 商户类型
     */
    private String merchantType;

    /**
     * 营业执照（企业证明）
     */
    private String businessLicensesImg;

    /**
     * 法人身份证正面照片
     */
    private String idCardFrontImg;

    /**
     * 法人身份证反面照片
     */
    private String idCardAfterImg;

    /**
     * 联系人姓名
     */
    private String username;

    /**
     * 联系人手机号(关联统一账号)
     */
    private String mobile;

    /**
     * 联系人地址
     */
    private String contactsAddress;

    /**
     * 审核状态 0-未申请,1-已申请待审核,2-审核通过,3-审核拒绝
     */
    private String auditStatus;

    /**
     * 租户ID,关联统一用户
     */
    private Long tenantId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public Long getId() {
        return id;
    }

    /**
     * 主键
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 商户名称
     */
    public String getMerchantName() {
        return merchantName;
    }

    /**
     * 商户名称
     */
    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    /**
     * 企业编号
     */
    public String getMerchantNo() {
        return merchantNo;
    }

    /**
     * 企业编号
     */
    public void setMerchantNo(String merchantNo) {
        this.merchantNo = merchantNo;
    }

    /**
     * 企业地址
     */
    public String getMerchantAddress() {
        return merchantAddress;
    }

    /**
     * 企业地址
     */
    public void setMerchantAddress(String merchantAddress) {
        this.merchantAddress = merchantAddress;
    }

    /**
     * 商户类型
     */
    public String getMerchantType() {
        return merchantType;
    }

    /**
     * 商户类型
     */
    public void setMerchantType(String merchantType) {
        this.merchantType = merchantType;
    }

    /**
     * 营业执照（企业证明）
     */
    public String getBusinessLicensesImg() {
        return businessLicensesImg;
    }

    /**
     * 营业执照（企业证明）
     */
    public void setBusinessLicensesImg(String businessLicensesImg) {
        this.businessLicensesImg = businessLicensesImg;
    }

    /**
     * 法人身份证正面照片
     */
    public String getIdCardFrontImg() {
        return idCardFrontImg;
    }

    /**
     * 法人身份证正面照片
     */
    public void setIdCardFrontImg(String idCardFrontImg) {
        this.idCardFrontImg = idCardFrontImg;
    }

    /**
     * 法人身份证反面照片
     */
    public String getIdCardAfterImg() {
        return idCardAfterImg;
    }

    /**
     * 法人身份证反面照片
     */
    public void setIdCardAfterImg(String idCardAfterImg) {
        this.idCardAfterImg = idCardAfterImg;
    }

    /**
     * 联系人姓名
     */
    public String getUsername() {
        return username;
    }

    /**
     * 联系人姓名
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 联系人手机号(关联统一账号)
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * 联系人手机号(关联统一账号)
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     * 联系人地址
     */
    public String getContactsAddress() {
        return contactsAddress;
    }

    /**
     * 联系人地址
     */
    public void setContactsAddress(String contactsAddress) {
        this.contactsAddress = contactsAddress;
    }

    /**
     * 审核状态 0-未申请,1-已申请待审核,2-审核通过,3-审核拒绝
     */
    public String getAuditStatus() {
        return auditStatus;
    }

    /**
     * 审核状态 0-未申请,1-已申请待审核,2-审核通过,3-审核拒绝
     */
    public void setAuditStatus(String auditStatus) {
        this.auditStatus = auditStatus;
    }

    /**
     * 租户ID,关联统一用户
     */
    public Long getTenantId() {
        return tenantId;
    }

    /**
     * 租户ID,关联统一用户
     */
    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Merchant other = (Merchant) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMerchantName() == null ? other.getMerchantName() == null : this.getMerchantName().equals(other.getMerchantName()))
            && (this.getMerchantNo() == null ? other.getMerchantNo() == null : this.getMerchantNo().equals(other.getMerchantNo()))
            && (this.getMerchantAddress() == null ? other.getMerchantAddress() == null : this.getMerchantAddress().equals(other.getMerchantAddress()))
            && (this.getMerchantType() == null ? other.getMerchantType() == null : this.getMerchantType().equals(other.getMerchantType()))
            && (this.getBusinessLicensesImg() == null ? other.getBusinessLicensesImg() == null : this.getBusinessLicensesImg().equals(other.getBusinessLicensesImg()))
            && (this.getIdCardFrontImg() == null ? other.getIdCardFrontImg() == null : this.getIdCardFrontImg().equals(other.getIdCardFrontImg()))
            && (this.getIdCardAfterImg() == null ? other.getIdCardAfterImg() == null : this.getIdCardAfterImg().equals(other.getIdCardAfterImg()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getContactsAddress() == null ? other.getContactsAddress() == null : this.getContactsAddress().equals(other.getContactsAddress()))
            && (this.getAuditStatus() == null ? other.getAuditStatus() == null : this.getAuditStatus().equals(other.getAuditStatus()))
            && (this.getTenantId() == null ? other.getTenantId() == null : this.getTenantId().equals(other.getTenantId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMerchantName() == null) ? 0 : getMerchantName().hashCode());
        result = prime * result + ((getMerchantNo() == null) ? 0 : getMerchantNo().hashCode());
        result = prime * result + ((getMerchantAddress() == null) ? 0 : getMerchantAddress().hashCode());
        result = prime * result + ((getMerchantType() == null) ? 0 : getMerchantType().hashCode());
        result = prime * result + ((getBusinessLicensesImg() == null) ? 0 : getBusinessLicensesImg().hashCode());
        result = prime * result + ((getIdCardFrontImg() == null) ? 0 : getIdCardFrontImg().hashCode());
        result = prime * result + ((getIdCardAfterImg() == null) ? 0 : getIdCardAfterImg().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getContactsAddress() == null) ? 0 : getContactsAddress().hashCode());
        result = prime * result + ((getAuditStatus() == null) ? 0 : getAuditStatus().hashCode());
        result = prime * result + ((getTenantId() == null) ? 0 : getTenantId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", merchantName=").append(merchantName);
        sb.append(", merchantNo=").append(merchantNo);
        sb.append(", merchantAddress=").append(merchantAddress);
        sb.append(", merchantType=").append(merchantType);
        sb.append(", businessLicensesImg=").append(businessLicensesImg);
        sb.append(", idCardFrontImg=").append(idCardFrontImg);
        sb.append(", idCardAfterImg=").append(idCardAfterImg);
        sb.append(", username=").append(username);
        sb.append(", mobile=").append(mobile);
        sb.append(", contactsAddress=").append(contactsAddress);
        sb.append(", auditStatus=").append(auditStatus);
        sb.append(", tenantId=").append(tenantId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}